package com.ly.demo.service.impl;

import com.ly.demo.annotation.RedisListener;
import org.springframework.stereotype.Component;

@Component
public class RedisMessageSubscriber {

    @RedisListener(topic = "channel1")
    public void channel1(String message) {
        System.out.println("Received message: " + message + " from");
    }
}
